package org.example.spring_annotation.controller;

import org.example.spring_annotation.po.User;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class SC {

    @RequestMapping("/sc-test")
    @ResponseBody
    public String testSc() {
        return "spring-test-controller";
    }

    @RequestMapping("/sc-test-json")
    @ResponseBody
    public User testUser() {
        return new User(1, "张三",null,null);
    }
}
